package com.xuelang.pipeline.app.resource;

import com.xuelang.pipeline.client.common.request.PageParam;
import com.xuelang.pipeline.client.common.result.PageRecord;
import com.xuelang.pipeline.client.resource.dto.CloudEnvironmentDTO;
import com.xuelang.pipeline.client.resource.dto.CloudEnvironmentQuery;

import java.util.List;

/**
 * 多云环境服务接口
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
public interface CloudEnvironmentService {
    /**
     * 查询多云环境列表(有过滤条件)
     *
     * @param dtoPageParam
     * @return
     */
    PageRecord<CloudEnvironmentDTO> pageList(PageParam<CloudEnvironmentQuery> dtoPageParam);

    /**
     * 查询多云环境列表(有过滤条件)
     *
     * @param cloudEnvironmentQuery
     * @return
     */
    List<CloudEnvironmentDTO> list(CloudEnvironmentQuery cloudEnvironmentQuery);

    /**
     * 添加多云环境
     *
     * @param cloudEnvironmentDTO
     * @return
     */
    Boolean add(CloudEnvironmentDTO cloudEnvironmentDTO);

    /**
     * 更新多云环境
     *
     * @param cloudEnvironmentDTO
     * @return
     */
    Boolean update(CloudEnvironmentDTO cloudEnvironmentDTO);

    /**
     * 删除多云环境
     *
     * @param id
     * @return
     */
    Boolean delete(Long id);
    /**
     * 查询多云环境
     *
     * @param id
     * @return
     */
    CloudEnvironmentDTO query(Long id);
}
